package User;

import Book.BookList;
import IOperation.*;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/15
 * Time: 11:03
 * Description: No Description
 */
public abstract class Animal {
    protected String name;
    protected IOperation[] iOperations;

    public Animal(String name) {
        this.name = name;

    }

    public abstract int menu();

    public void fun(int pos, BookList bookList) {
       iOperations[pos].work(bookList);
    }
}